#ifndef _ADDRESS_H_
#define _ADDRESS_H_
#include<string>

#include<arpa/inet.h>

using std::string;
namespace http_server
{
class Address
{
public:
    explicit Address(const size_t port);
    Address(const string& ip, const size_t port);
    Address(const sockaddr_in& addr);

    //Func
    sockaddr_in* getInetAddr();
    string getIP() const;
    size_t getPort() const;

private:
    sockaddr_in _addr;
};

}

#endif